package top.melody.ecommerce.platform.api.domain.goods;

import java.io.Serializable;

import top.melody.ecommerce.common.util.reflect.ReflectUtil;

import java.util.Date;


/**
 * @author: melody
 * @groupId:rd
 * @createdate:2016-10-18
 * @mail: blentle.huan.ren@gmail.com
 * @description:
 * @since: 1.0
 */
public class GoodsStock implements Serializable {

    /* 自增ID */
    private Integer goodsStockId;
    /* 商品ID */
    private Integer goodsId;
    /* 商品名称冗余 */
    private String goodsName;
    /* 商品真实库存 */
    private Integer goodsStock;
    /* 商品虚拟库存 */
    private Integer virtualStock;
    /* 有效：VALID;无效:INVALID */
    private String validStatus;
    /* 已删除：Y;未删除：N */
    private String removeStatus;
    /* 创建时间 */
    private Date createDate;
    /* 最近更新时间 */
    private Date updateDate;

    public GoodsStock() {

    }

    public GoodsStock(Integer goodsStockId, Integer goodsId, String goodsName, Integer goodsStock, Integer virtualStock, String validStatus, String removeStatus, Date createDate, Date updateDate) {
        this.goodsStockId = goodsStockId;
        this.goodsId = goodsId;
        this.goodsName = goodsName;
        this.goodsStock = goodsStock;
        this.virtualStock = virtualStock;
        this.validStatus = validStatus;
        this.removeStatus = removeStatus;
        this.createDate = createDate;
        this.updateDate = updateDate;
    }

    public Integer getGoodsStockId() {
        return goodsStockId;
    }

    public void setGoodsStockId(Integer goodsStockId) {
        this.goodsStockId = goodsStockId;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public Integer getGoodsStock() {
        return goodsStock;
    }

    public void setGoodsStock(Integer goodsStock) {
        this.goodsStock = goodsStock;
    }

    public Integer getVirtualStock() {
        return virtualStock;
    }

    public void setVirtualStock(Integer virtualStock) {
        this.virtualStock = virtualStock;
    }

    public String getValidStatus() {
        return validStatus;
    }

    public void setValidStatus(String validStatus) {
        this.validStatus = validStatus;
    }

    public String getRemoveStatus() {
        return removeStatus;
    }

    public void setRemoveStatus(String removeStatus) {
        this.removeStatus = removeStatus;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    @Override
    public String toString() {
        return ReflectUtil.fieldsToString(this);
    }
}
